﻿<Window x:Class="Cau2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="580" Loaded="Window_Loaded">
    
    <Grid>
        <Label Content="Mã SV" Height="25" HorizontalAlignment="Left" Margin="30,40,0,0" Name="masv" VerticalAlignment="Top" Width="60" />
        <Label Content="Mã Khoa" Height="25" HorizontalAlignment="Left" Margin="30,70,0,0" Name="makhoa" VerticalAlignment="Top" Width="60" />
        <TextBox Height="25" HorizontalAlignment="Left" Margin="87,40,0,0" Name="kmasv" VerticalAlignment="Top" Width="60" />
        <TextBox Height="25" HorizontalAlignment="Left" Margin="87,70,0,0" Name="kmakhoa" VerticalAlignment="Top" Width="60" />
        <Label Content="Họ SV" Height="25" HorizontalAlignment="Left" Margin="169,40,0,0" Name="hosv" VerticalAlignment="Top" Width="60" />
        <Label Content="Ngày Sinh" Height="25" HorizontalAlignment="Left" Margin="169,68,0,0" Name="ns" VerticalAlignment="Top" Width="60" />
        <TextBox Height="25" HorizontalAlignment="Left" Margin="227,40,0,0" Name="khosv" VerticalAlignment="Top" Width="100" />
        <DatePicker Height="25" HorizontalAlignment="Left" Margin="227,70,0,0" Name="kns" VerticalAlignment="Top" Width="100" />
        <Label Content="Tên SV" Height="25" HorizontalAlignment="Left" Margin="352,40,0,0" Name="tensv" VerticalAlignment="Top" Width="60" />
        <Label Content="Giới Tính" Height="25" HorizontalAlignment="Left" Margin="352,72,0,0" Name="sex" VerticalAlignment="Top" Width="60" />
        <TextBox Height="25" HorizontalAlignment="Left" Margin="408,40,0,0" Name="ktensv" VerticalAlignment="Top" Width="100" />
        <TextBox Height="25" HorizontalAlignment="Left" Margin="408,70,0,0" Name="ksex" VerticalAlignment="Top" Width="100" />
        <DataGrid Name="datagrid" AutoGenerateColumns="False" Margin="11,103,12,61">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Mã SV" Width="50" Binding="{Binding masv}"></DataGridTextColumn>
                <DataGridTextColumn Header="Họ SV" Width="120" Binding="{Binding hosv}"></DataGridTextColumn>
                <DataGridTextColumn Header="Tên SV" Width="100" Binding="{Binding tensv}"></DataGridTextColumn>
                <DataGridTextColumn Header="Ngày Sinh" Width="100" Binding="{Binding ns}"></DataGridTextColumn>
                <DataGridTextColumn Header="Giới Tính" Width="80" Binding="{Binding sex}"></DataGridTextColumn>
                <DataGridTextColumn Header="Mã Khoa" Width="80" Binding="{Binding mkhoa}"></DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>
        <Button Content="Thêm" Height="30" HorizontalAlignment="Left" Margin="44,269,0,0" Name="them" Click="them_Click" VerticalAlignment="Top" Width="70" />
        <Button Content="Sửa" Height="30" HorizontalAlignment="Left" Margin="129,269,0,0" Name="sua" VerticalAlignment="Top" Width="75" />
        <Button Content="Xóa" Height="30" HorizontalAlignment="Left" Margin="219,269,0,0" Name="xoa" Click="xoa_Click" VerticalAlignment="Top" Width="70" />
        <Button Content="Lưu" Height="30" HorizontalAlignment="Left" Margin="304,269,0,0" Name="luu" VerticalAlignment="Top" Width="70" />
        <Button Content="Hủy" Height="30" HorizontalAlignment="Left" Margin="389,269,0,0" Name="huy" VerticalAlignment="Top" Width="70" />
        <Button Content="Thoát" Height="30" HorizontalAlignment="Left" Margin="474,269,0,0" Name="thoat" Click="thoat_Click" VerticalAlignment="Top" Width="70" />
    </Grid>
</Window>
